package com.farsunset.lvxin.config;

import com.farsunset.lvxin.data.redis.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;

import javax.annotation.Resource;

@Configuration
public class RedisConfig {

	@Resource
    private JedisConnectionFactory jedisConnectionFactory;
 
	@Bean
	public SessionRedisTemplate getSessionRedisTemplate() {
		return new SessionRedisTemplate(jedisConnectionFactory);
	}

}